package com.haoxin.ai_course.modules.course.service.impl;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.haoxin.ai_course.modules.course.entity.AcStatisticsUser;
import com.haoxin.ai_course.modules.course.mapper.AcStatisticsUserMapper;
import com.haoxin.ai_course.modules.course.service.AcStatisticsUserService;



@Service
public class AcStatisticsUserServiceImpl extends ServiceImpl<AcStatisticsUserMapper, AcStatisticsUser> implements AcStatisticsUserService {

	@Override
	public Integer getMaxRevisitTimes(Long userId, Integer courseId) {
		// TODO Auto-generated method stub
		return this.baseMapper.getMaxRevisitTimes(userId,courseId);
	}

	@Override
	public Integer getTopicCountByCourseId(Integer courseId) {
		// TODO Auto-generated method stub
		return baseMapper.getTopicCountByCourseId(courseId);
	}

	@Override
	public void clearStatisticsData() {
		// TODO Auto-generated method stub
		 baseMapper.clearStatisticsData1();
		 baseMapper.clearStatisticsData2();
		 baseMapper.clearStatisticsData3();
		 baseMapper.clearStatisticsData4();
		 baseMapper.clearStatisticsData5();
		 baseMapper.clearStatisticsData6();
		 baseMapper.clearStatisticsData7();
		 baseMapper.clearStatisticsData8();
		 baseMapper.clearStatisticsData9();
		 baseMapper.clearStatisticsData10();
		 baseMapper.clearStatisticsData11();
	}
	
}
